package com.wpp.lagouservicecode.controller;

import com.wpp.core.result.ResultDTO;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wpp25
 * @date 2021/5/16 19:19
 * @description：
 */
@RestController
@RequestMapping("/api/code")
public class CodeController {

    @Value("${server.code}")
    private String code;

    @GetMapping
    public ResultDTO<String> getCode(){

        return ResultDTO.successResult(code);
    }

}
